/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans.data;

import datamodel.Category;
import ejb.CategoryManager;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author eXtreme
 */
@ManagedBean(name = "category")
@ApplicationScoped
public class CategoryBean {

    @EJB
    private CategoryManager cm;

    public List<Category> getCategories() {
        return cm.getAllCategories();
    }

}
